package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品库存对象 sys_goods_earn
 *
 * @author ruoyi
 * @date 2022-10-30
 */
public class SysGoodsEarn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出库id */
    private Long outGoodsId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String goodsPicture;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer num;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 售卖价格 */
    @Excel(name = "售卖价格")
    private BigDecimal sellPrice;

    /** 总收益 */
    @Excel(name = "总收益")
    private BigDecimal income;

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 商品种类 */
    @Excel(name = "商品种类")
    private String type;

    /** 在仓时间 */
    @Excel(name = "在仓时间")
    private String repositoryTime;

    /** 用户 */
    @Excel(name = "用户")
    private String user;

    public void setOutGoodsId(Long outGoodsId)
    {
        this.outGoodsId = outGoodsId;
    }

    public Long getOutGoodsId()
    {
        return outGoodsId;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setGoodsPicture(String goodsPicture)
    {
        this.goodsPicture = goodsPicture;
    }

    public String getGoodsPicture()
    {
        return goodsPicture;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setNum(Integer num)
    {
        this.num = num;
    }

    public Integer getNum()
    {
        return num;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setSellPrice(BigDecimal sellPrice)
    {
        this.sellPrice = sellPrice;
    }

    public BigDecimal getSellPrice()
    {
        return sellPrice;
    }
    public void setIncome(BigDecimal income)
    {
        this.income = income;
    }

    public BigDecimal getIncome()
    {
        return income;
    }
    public void setDate(Date date)
    {
        this.date = date;
    }

    public Date getDate()
    {
        return date;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setRepositoryTime(String repositoryTime)
    {
        this.repositoryTime = repositoryTime;
    }

    public String getRepositoryTime()
    {
        return repositoryTime;
    }
    public void setUser(String user)
    {
        this.user = user;
    }

    public String getUser()
    {
        return user;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("outGoodsId", getOutGoodsId())
                .append("goodsId", getGoodsId())
                .append("goodsPicture", getGoodsPicture())
                .append("name", getName())
                .append("num", getNum())
                .append("price", getPrice())
                .append("sellPrice", getSellPrice())
                .append("income", getIncome())
                .append("date", getDate())
                .append("type", getType())
                .append("repositoryTime", getRepositoryTime())
                .append("user", getUser())
                .toString();
    }
}
